﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MallProject.Default
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string opt=ddlSearch.SelectedValue;
            string keyword = txtKeyword.Text;
            string Url = opt.Equals("1") ? "Search.aspx?opt=product&keyword=" + keyword : "Search.aspx?opt=movies&keyword=" + keyword;
            Response.Redirect(Url);
        }
    }
}